package com.zcl.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcl.mapper.RoleMapper;

@Service
public class RoleService {
	@Autowired
	RoleMapper roleMapper;	//注入RoleMapper接口
	//相当于 RoleMapper rolemapper = new RoleMapper();
	
	public void userAdd(Map<String, String> map) {
		roleMapper.userAdd(map);
	}
	
	public void user_role_Add(Map<String, String> map) {
		roleMapper.user_role_Add(map);
	}
	
	public List<Map<String, String>> roleGlobalQuery(Map<String, String> map){
		return roleMapper.roleGlobalQuery(map);
	}
	public List<Map<String, String>> roleQuery(Map<String, String> map){
		return roleMapper.roleQuery(map);
	}
	public List<Map<String, String>> roleAdvancedQuery(Map<String, String> map){
		return roleMapper.roleAdvancedQuery(map);
	}
	public Map<String, String> roleSuveryInfo(Map<String, String> map){
		return roleMapper.roleSuveryInfo(map);
	}
	public Map<String, String> roleSuveryInfo2(Map<String, String> map){
		return roleMapper.roleSuveryInfo2(map);
	}
	public void roleReviseRole(Map<String, String> map){
		roleMapper.roleReviseRole(map);
		roleMapper.roleReviseRole2(map);
	}
	public void roleDelete(Map<String, String> map) {
		roleMapper.roleDelete(map);
	}
}
